package com.agentlab.imitation.bean;

/**
 * TLqkAllId entity. @author MyEclipse Persistence Tools
 */

public class TLqkAllId implements java.io.Serializable {

	// Fields

	private Integer zsnf;
	private String ksh;

	// Constructors

	/** default constructor */
	public TLqkAllId() {
	}

	/** full constructor */
	public TLqkAllId(Integer zsnf, String ksh) {
		this.zsnf = zsnf;
		this.ksh = ksh;
	}

	// Property accessors

	public Integer getZsnf() {
		return this.zsnf;
	}

	public void setZsnf(Integer zsnf) {
		this.zsnf = zsnf;
	}

	public String getKsh() {
		return this.ksh;
	}

	public void setKsh(String ksh) {
		this.ksh = ksh;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof TLqkAllId))
			return false;
		TLqkAllId castOther = (TLqkAllId) other;

		return ((this.getZsnf() == castOther.getZsnf()) || (this.getZsnf() != null
				&& castOther.getZsnf() != null && this.getZsnf().equals(
				castOther.getZsnf())))
				&& ((this.getKsh() == castOther.getKsh()) || (this.getKsh() != null
						&& castOther.getKsh() != null && this.getKsh().equals(
						castOther.getKsh())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getZsnf() == null ? 0 : this.getZsnf().hashCode());
		result = 37 * result
				+ (getKsh() == null ? 0 : this.getKsh().hashCode());
		return result;
	}

}